<?php
ob_start();
session_start();
  class front_index{
    private $template;
    private $util;
    private $db;
    
    public function __construct(){
        require_once 'code/util.class.php';   
        $this->util = new util();
        $this->db = new db();
    }
    
    public function autorun(){
        $act =  isset($_GET['act'])?$_GET['act']:'display';  
        switch($act){
            case 'display':
                $this->display(); 
                break;
            default:
                $this->display(); 
                break;   
            
        }
          
    }  
   
 
  
    private function display(){
        $this->util->generate_page('../templates/frontend/index/index.tpl');    
    }
  }
?>
